package com.ruoyi.client.service.impl;

import com.ruoyi.client.domain.TbStockVo;
import com.ruoyi.client.mapper.TbStockVoMapper;
import com.ruoyi.client.service.ITbStockVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbStockVoServiceImpl implements ITbStockVoService {
    @Autowired
    TbStockVoMapper tbStockVoMapper;
    @Override
    public List<TbStockVo> selectTbStockVo(TbStockVo stockData) {
        return tbStockVoMapper.selectTbStockVo(stockData);
    }

    @Override
    public void deleteAll() {
        tbStockVoMapper.deleteAll();
    }

    @Override
    public void add(TbStockVo stockData) {
        tbStockVoMapper.add(stockData);
    }

    @Override
    public TbStockVo getNameBySymbol(String symbol) {
        return tbStockVoMapper.getNameBySymbol(symbol);
    }
}
